﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Iguana.Core.HypterText
{
    /// <summary>
    /// Provides a class structure for checking HTMl4.01/XHTML1.0 DTD compliance
    /// </summary>
    public class HTML4Compliance
    {
        private DocumentTypeCollection m_SupportedDocumentTypes;

        public DocumentTypeCollection SupportedDocumentTypes
        {
            get { return m_SupportedDocumentTypes; }
            set { m_SupportedDocumentTypes = value; }
        }

        public HTML4Compliance()
        {
            m_SupportedDocumentTypes = new DocumentTypeCollection();
        }

        /// <summary>
        /// Checks whether a document type is supported.
        /// </summary>
        /// <param name="docType"></param>
        /// <returns></returns>
        public bool Verify(IDocumentType docType)
        {
            if (docType != null)
            {
                return m_SupportedDocumentTypes.Contains(docType);
            }
            else { return false; }
        }


    }
}
